package com.learn.my.flutter;

public class FuttureClient {

    /**
     *
     * @return
     */
    public Data submit(final String requestData){
        final FuttureData futtureData=new FuttureData();
        new  Thread(new Runnable() {
            @Override
            public void run() {
                //阻塞
                RealData realData=new RealData(requestData);
                futtureData.setReadData(realData);

            }
        }).start();
        return futtureData;
    }
}
